package com.rslai.commons.http.tools;

import org.apache.http.conn.ssl.AbstractVerifier;
import org.apache.http.conn.ssl.X509HostnameVerifier;

import javax.net.ssl.SSLException;

/**
 * SSL有效性检查
 */
public class SSLVerifier extends AbstractVerifier {
    private final X509HostnameVerifier delegate;

    /**
     * 构造函数
     * @param delegate X509HostnameVerifier
     */
    public SSLVerifier(final X509HostnameVerifier delegate) {
        this.delegate = delegate;
    }

    /**
     * 忽略检查
     */
    @Override
    public void verify(String host, String[] cns, String[] subjectAlts) throws SSLException {

    }

}
